<?php
	session_start();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Experi&ecirc;ncias do Processo de Adoecimento</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="vivencias.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="f0fefc">
<div align="center">
  <table width="600" border="0">
    <tr>
      <td align="center" valign="top">
        <table width="93%" border="0" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
          <tr bgcolor="80c6bc" class="texttab">
            <td width="508" align="left" valign="middle" class="titprincipal">Revisar
              Conte&uacute;do</td>
            <td width="21" align="right" valign="middle" class="titprincipal"><a href="javascript:void(0);" onClick="javascript:var objWindow = window.open(location.href, '_self');objWindow.close();"><img src="imagens/x.jpg" width="21" height="21" border="0"></a></td>
          </tr>


			<?php
			include("/var/www/html/vivencias/conexaoBD.php");

			$idModulo = $_GET['idModulo'];
			$query1 = "SELECT conteudo,titulo FROM modulos WHERE idModulo='".$idModulo."'";
			$resultado1 = mysql_query($query1,$conexao);
			$objeto1 = mysql_fetch_object($resultado1);

		?>
	  <tr bgcolor="cdede8" class="texttab">
            <td colspan="2" class="texto2"><strong><?php echo $objeto1->titulo;?></strong></td>
          </tr>
	 <form name="formulario" enctype="multipart/form-data" action="insereConteudo.php" method="post">
          <tr bgcolor="cdede8" class="texttab">
            <td colspan="2" class="texto2">
		<textarea name="conteudo" cols="75" rows="10"><?php echo $objeto1->conteudo;?></textarea>
	    </td>
          </tr>
	  <input type="hidden" name="modulos" value="<?echo $idModulo;?>">
          <tr bgcolor="b1ddd7" class="texttab">
            <td colspan="2" class="texto2"><input type="submit" name="Submit" value="Enviar"></td>
          </tr>
	</form>
        </table>
        <p align="center">&nbsp;</p>
        <p>&nbsp;</p>
        <p align="center">&nbsp;</p>
        <p>&nbsp;</p></td>
    </tr>
  </table>
</div>
</body>
</html>
